@echo off
setlocal enableextensions enabledelayedexpansion
set /a "x = 0"

del out\*_reduced*

:while1
    if %x% leq 10 (

		ssatest_reduced ssaout.txt 1 0 >> out/test_reduced10.txt
		ssatest_reduced ssaout.txt 2 0 >> out/test_reduced20.txt
		ssatest_reduced ssaout.txt 1 2 >> out/test_reduced12.txt
		ssatest_reduced ssaout.txt 2 1 >> out/test_reduced21.txt
        
        set /a "x = x + 1"
		echo %x%
        goto :while1
    )
endlocal